public class LibraryBook {
    private String bookTitle;
    private String author;
    private String isbn;
    private boolean isAvailable;

    // 构造方法
    public LibraryBook(String bookTitle, String author, String isbn, boolean isAvailable) {
        this.bookTitle = bookTitle;
        this.author = author;
        this.isbn = isbn;
        this.isAvailable = isAvailable;
    }

    // 借阅书籍
    public void borrowBook() {
        if (isAvailable) {
            isAvailable = false;
        } else {
            System.out.println("这本书目前不可借阅。");
        }
    }

    // 归还书籍
    public void returnBook() {
        if (!isAvailable) {
            isAvailable = true;
        } else {
            System.out.println("这本书已经在馆藏中。");
        }
    }

    // 显示书籍信息
    public void displayBookInfo() {
        System.out.println("书名: " + bookTitle);
        System.out.println("作者: " + author);
        System.out.println("ISBN: " + isbn);
        System.out.println("是否可借: " + (isAvailable ? "可借" : "不可借"));
    }
}
